<?php
namespace app\api\controller\mall;

use app\api\controller\ApiBase;
use app\common\business\Goods as goodsBusi;
use app\common\lib\Show;
// 分类API
class Detail extends ApiBase
{
	public function index(){
		$id = input('param.id',0,'intval');
		if(!$id){
			return Show::error();
		}

		$result = (new goodsBusi())->getGoodsDetailBySkuId($id);
		
		if(!$result){
			return Show::error();
		}
		return Show::success($result);
	}
}
